package com.qfedu.mall.beans.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "product_sku")
public class ProductSku {
        /**
         * sku编号
         */
        @Id
        @Column(name = "sku_id")
        private String skuId;

        /**
         * 商品id
         */
        @Column(name = "product_id")
        private String productId;

        /**
         * sku名称
         */
        @Column(name = "sku_name")
        private String skuName;

        /**
         * sku图片
         */
        @Column(name = "sku_img")
        private String skuImg;

        /**
         * 属性组合（格式是p1:v1;p2:v2）
         */
        private String untitled;

        /**
         * 原价
         */
        @Column(name = "original_price")
        private Integer originalPrice;

        /**
         * 销售价格
         */
        @Column(name = "sell_price")
        private Integer sellPrice;

        /**
         * 库存
         */
        private Integer stock;

        /**
         * sku状态(1启用，0禁用，-1删除)
         */
        private Integer status;

    }
